import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    playUrl:1,  //歌曲播放地址
    musicDetail:'',
  },
  mutations: {//1.在这里定义方法来修改他  2.触发
    getVuexUrl(state,url){
      state.playUrl = url
    },
    getVuexDetail(state,item){
      state.musicDetail = item
    }
  },
})
